﻿@model IEnumerable<NUS.ISS.ARS.BusinessEntity.ViewModels.RevenueReportView>

@if (Model.Count() == 0)
{
    <h3 class="text-error">No items matched your search query</h3>
}
else
{
    <table cellpadding="20">
        <tr>
            <th>
                @Html.DisplayNameFor(model => model.FlightNumber)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AirportFrom)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.AirportTo)
            </th>
            <th>
                @Html.DisplayNameFor(model => model.Revenue)
            </th>
        </tr>

        @foreach (var item in Model)
        {
            <tr>
                <td>
                    @Html.DisplayFor(modelItem => item.FlightNumber)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AirportFrom)
                </td>
                <td>
                    @Html.DisplayFor(modelItem => item.AirportTo)
                </td>
                <td>
                    S$@Html.DisplayFor(modelItem => item.Revenue)
                </td>
            </tr>
        }
    </table>
}
